import request from '@/utils/request'
// c
export function createOne(data) {
    return request({
        url: 'system/notice',
        method: 'post',
        data: data
    })
}
// d
export function deleteOne(id) {
    return request({
        url: 'system/notice/' + id,
        method: 'delete'
    })
}
// u
export function updateOne(data) {
    return request({
        url: 'system/notice',
        method: 'put',
        data: data
    })
}
// r
export function queryOne(id) {
    return request({
        url: 'system/notice/' + id,
        method: 'get'
    })
}
export function queryList(query) {
    return request({
        url: 'system/notice',
        method: 'get',
        params: query
    })
}
